define(function (require, exports, module) {

    var $ = require("jquery");

    var connect = $(".connect");

    var dbtest = {

        init: function () {
            $.ajax({
                url: "db.do?method=getAllDBs",
                dataType: "json",
                success: function (data) {
                    console.log(data);
                },
                error: function () {
                    alert("发生错误！~");
                }
            });
        },

    };

    exports.init = function () {
        dbtest.init();
    }

});